#ifndef __MCPANCONTROLLER_H_
#define __MCPANCONTROLLER_H_

#include <ICanvas.h>
#include <MCMouseReceiver.h>

class MCPanController : public MCMouseReceiver
{
public:

    MCPanController(ICanvas *presenter);

    void onMouseDown(IMouseArgs &args) override;
    void onMouseUp(IMouseArgs &args) override;
    void onMouseMove(IMouseArgs &args) override;

private:

    ICanvas *_presenter;
    MCPoint2D _startDraggingPos;
    bool _isPanningValid;

};

#endif // !__MCPANCONTROLLER_H_
